import { Modal } from "antd";
import React, { useImperativeHandle } from "react";

const XxImageBedModal = ({ onRef, }) => {
    const [open, setOpen] = React.useState(true);

    const onClickOpen = () => {
        console.log("点开图库");
        setOpen(true);
    }

    const onClose = () => {
        setOpen(false);
    }

    useImperativeHandle(onRef, () => ({
        open: onClickOpen,
    }))
    return (
        <Modal
            title="图库"
            width={800}
            onCancel={onClose}
            open={open}
            centered

        >
            <div>图库</div>
        </Modal>
    )
}
export default XxImageBedModal;